#ifndef SAVEBYTHREAD_H
#define SAVEBYTHREAD_H

#include <QThread>
#include <QMutex>

class SaveByThread : public QThread
{
    Q_OBJECT
public:
    void run() override;
    void setContext(const QString &text);
    void setPath(const QString &path) { m_tempPath = path; }

signals:
    void finished(bool);

private:
    QString m_tempPath = "D:/temp.txt";
    QString m_context;
    QMutex m_mutex;
};

#endif // SAVEBYTHREAD_H
